<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta name="renderer" content="webkit" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="initial-scale=1, width=device-width, maximum-scale=1, minimum-scale=1, user-scalable=no" />
    <title><?=$article['title']?> - <?=$cat_name?> - 这是一个创意的网站-跃飞科技</title>
    <meta name="author" content="跃飞科技开发组" />
    <meta name="keywords" content="<?=$article['keywords']?>" />
    <meta name="description" content="<?=$article['description']?>" />
    <link rel="shortcut icon" id="favicon" href="<?php echo IMG;?>/logo.ico" />
    <link rel="stylesheet" href="<?php echo CSS;?>/main.css?v=17.24" />
    <link rel="stylesheet" href="<?php echo CSS;?>/animation.css" />
    <script src="<?php echo JS;?>/baidu_tongji.js"></script>
    <script src="<?php echo UEDITOR;?>/third-party/SyntaxHighlighter/shCore.js"></script>
    <link rel="stylesheet" href="<?php echo UEDITOR;?>/third-party/SyntaxHighlighter/shCoreDefault.css" />
    <script type="text/javascript">SyntaxHighlighter.all();</script>
</head>
<body class="details-page open">
<div id="main-container">
    <div class="inner-wrap">
        <article>
            <h1><?=$article['title']?></h1>
            <p class="info">更新时间：<?=formatDate($article['add_time'])?>
                <u>•</u>点击：<?=$article['count']?> <u>•</u>
                <a href="<?=url('home/news/index',['id'=>$article['article_id']],true,true)?>"><?=$cat_name?></a>
            </p>
            <div class="content">
                <?=htmlspecialchars_decode($article['content'])?>
            </div>
            <div class="recommend-news">
                <div class="caption">
                    <h3>最新阅读</h3>
                </div>
                <ul class="items">
                    <?php foreach($recommend as $k=>$v):?>
                    <li class="clearfix">
                        <div class="img">
                            <a href="<?php echo url('home/news/detail',['id'=>$v['article_id']],true,true);?>">
                                <img src="<?php echo UPLOADS;?>/image/20150909/1441803350.jpg" alt="<?=$v['title']?>" />
                            </a>
                            <div class="bl"></div>
                        </div>
                        <h2><a href="<?php echo url('home/news/detail',['id'=>$v['article_id']],true,true);?>"><?=$v['title']?></a></h2>
                        <p><?=formatDate($v['add_time'])?><br/><u>•</u>点击:<?=$v['count']?> 次</p>
                    </li>
                    <?php endforeach;?>
                </ul>
            </div>
        </article>
    </div>
    <?php include_home_view('public'.DS.'services.php');?>
</div>
<div class="sub-nav">
    <ul class="btn">
        <li><a href="<?php echo url('home/news/index','',true,true);?>"><img src="<?php echo IMG;?>/home.png"></span><span style="margin-left:5px" class="yc">最新资讯</span></a></li>
        <li><a href="<?php echo url('home/news/detail',['id'=>$pre_id],true,true);?>"><span><img src="<?php echo IMG;?>/pre.png"></span></span></a></li>
        <li><a href="<?php echo url('home/news/detail',['id'=>$next_id],true,true);?>"><span><img src="<?php echo IMG;?>/nextno.png"></span></a></li>
    </ul>
</div>
<?php include_home_view('public'.DS.'left.php');?>
</body>
</html>